<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head th:include="student/common :: commonhead">
    <!--<div th:replace="student/common :: commonhead"></div>-->
</head>
<head>
    <title>修改密码</title>
    <!--这里写这个页面单独需要的css-->
</head>
<body class="sticky-header">

<section>
    <!--  引入左侧边  -->
    <div th:replace="student/common :: left"></div>

    <div class="main-content">
        <div th:replace="student/common :: header-section"></div>
        <!--这里开始写东西-->
        <div class="wrapper">
            <div class="row">
                <section class="panel col-lg-8 col-md-offset-2">
                    <header class="panel-heading">
                        修改密码
                    </header>
                    <div class="panel-body">
                        <form class="form-horizontal studentex-form" th:action="@{/student/changePassword}" method="post">

                            <input type="hidden" name="_method" value="put">
                            <input type="hidden" readonly="readonly" unselectable="on" class="form-control" name="stuId"
                                   th:value="${student.stuId}">


                            <input type="hidden" class="form-control" name="stuName"
                                   th:value="${student.stuName}">


                            <div class="form-group">
                                <label class="col-sm-2 col-sm-2 control-label">旧密码</label>
                                <div class="col-sm-10">
                                    <input type="password" class="form-control" name="stuPassword">
                                    <span style="color: red" th:if="${not #strings.isEmpty(msg_1)}" th:text="${msg_1}"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 col-sm-2 control-label">新密码</label>
                                <div class="col-sm-10">
                                    <input type="password" class="form-control" name="newPassword">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 col-sm-2 control-label">确认新密码</label>
                                <div class="col-sm-10">
                                    <input type="password" class="form-control" name="reNewPassword">
                                    <span style="color: red" th:if="${not #strings.isEmpty(msg_2)}" th:text="${msg_2}"></span>
                                </div>
                            </div>


                            <input type="hidden" class="form-control" name="stuEmail"
                                   th:value="${student.stuEmail}">

                            <input type="hidden" class="form-control" name="stuPhone"
                                   th:value="${student.stuPhone}">

                            <input type="hidden" class="form-control" name="stuPhone"
                                   th:value="${student.stuMajor}">

                            <input type="hidden" class="form-control" name="stuPhone"
                                   th:value="${student.stuSex}">

                            <button type="submit" class="btn btn-lg btn-login btn-block">
                                <i class="fa fa-check">修改</i>
                            </button>
                        </form>
                    </div>
                </section>
            </div>
        </div>
    </div>
</section>

<div th:replace="student/common :: commonjs"></div>

</body>
</html>